package com.ruoyi.coffee.controller;

import com.ruoyi.coffee.dto.QueryProductDto;
import com.ruoyi.coffee.service.IAttributesService;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dxj
 * @Description 咖啡属性接口
 * @date 2025/1/5 10:31
 */
@RestController
@RequestMapping("/attributes")
@AllArgsConstructor
@Api(tags = "咖啡属性接口")
public class AttributesController {

    private IAttributesService attributesService;

    @GetMapping("/list")
    @ApiOperation(value = "咖啡属性", notes = "查询咖啡属性")
    public AjaxResult attributesList() {
        return AjaxResult.success(attributesService.findList());
    }
}
